<MudChip T="string"
         Color="@Color"
         Variant="@Variant"
         Icon="@Icon"
         Size="Size.Small"
         Class="@CssClass"
         @attributes="AdditionalAttributes">
    @ChildContent
</MudChip>

@code {
    [Parameter] public Color Color { get; set; } = Color.Default;
    [Parameter] public Variant Variant { get; set; } = Variant.Filled;
    [Parameter] public string? Icon { get; set; }
    [Parameter] public string? Class { get; set; }
    [Parameter] public RenderFragment? ChildContent { get; set; }
    [Parameter(CaptureUnmatchedValues = true)] public Dictionary<string, object>? AdditionalAttributes { get; set; }

    private string CssClass => string.IsNullOrWhiteSpace(Class) ? "fsh-chip" : $"fsh-chip {Class}";
}
